<div id="nav">
        <ul class="ul-menu">
            <li><a href="index.php?page=trang-chu" <?php if($page=='trang-chu'){echo 'class=current';}?>>Trang chủ</a></li>
            <li><a href="index.php?page=gioi-thieu" <?php if($page=='gioi-thieu'){echo 'class=current';}?>>Giới thiệu</a></li>
            <li class="li-1"><a href="#" <?php if($page=='du-an'){echo 'class=current';}?>>Dự án</a>
            	<ul class="ul-1">
                    <li><a href="index.php?page=du-an&act=du-an-dang-trien-khai">Dự án đang triển khai</a></li>
                    <li><a href="index.php?page=du-an&act=du-an-da-trien-khai">Dự án đã triển khai</a></li>
                </ul>
            </li>
            <li class="li-1"><a href="index.php?page=san-pham" <?php if($page=='san-pham'){echo 'class=current';}?>>Sản phẩm</a>
            	<ul class="ul-1">
					<?php
                        $sql="SELECT * FROM tbl_danhmuc";
                        $res=mysql_query($sql);
                        while($row=mysql_fetch_array($res))
                        {
                        ?>
                            <li class="li-2"><a href="index.php?page=san-pham&list=danh-muc&item=<?php echo $row['danhmuc_id'];?>"><?php echo $row['danhmuc']?></a>
                                <ul class="ul-2">
                                <?php
                                    $sql_cl="SELECT * FROM tbl_chungloai WHERE danhmuc_id='".$row['danhmuc_id']."'";
                                    $res_cl=mysql_query($sql_cl);
                                    while($row_cl=mysql_fetch_array($res_cl))
                                    {
                                    ?>
                                        <li><a href="index.php?page=san-pham&list=chung-loai&cate=<?php echo $row_cl['chungloai_id'];?>"><?php echo $row_cl['chungloai'];?></a></li>
                                    <?php
                                    }
                                ?>
                                </ul>
                            </li>
                        <?php
                        }
                    ?>

                </ul>
            </li>
            <li><a href="index.php?page=tin-tuc" <?php if($page=='tin-tuc'){echo 'class=current';}?>>Tin tức</a></li>
            <li><a href="index.php?page=chung-chi" <?php if($page=='chung-chi'){echo 'class=current';}?>>Chứng chỉ</a></li>
            <li><a href="index.php?page=tuyen-dung" <?php if($page=='tuyen-dung'){echo 'class=current';}?>>Tuyển dụng</a></li>
            <li><a href="index.php?page=anh-hoat-dong" <?php if($page=='anh-hoat-dong'){echo 'class=current';}?>>Ảnh hoạt động</a></li>
            <li><a href="index.php?page=lien-he" <?php if($page=='lien-he'){echo 'class=current';}?>>Liên hệ</a></li>
            <li><a href="index.php?page=hop-thu" <?php if($page=='hop-thu'){echo 'class=current';}?>>Hộp thư</a></li>
        </ul>
</div>
<script>
$(document).ready(function(e) {
    $(".li-1").hover(function(){
		$(".ul-1").css({display: "none"}).fadeIn("fast");
		},function(){
			$(".ul-1").fadeOut("fast");
			}
	)
	$(".li-2").hover(function(){
		$(".ul-2").css({display: "none"}).fadeIn("fast");
		},function(){
			$(".ul-2").fadeOut("fast");
			}
	)
});
</script>